package guoanmaker.provider.business.model;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import guoanmaker.provider.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
 * 
* @ClassName: ProvideSpaceReserve 
* @Description: 预约空间实体
* @author Yvonne_MGL
* @date 2017年8月15日 上午10:36:30 
*  
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name="t_provide_spacereserve")
public class ProvideSpaceReserve extends IdEntity{
	private Date createTime;//预约时间
	private String reserveTime;//参观时间
	private String contactPerson;//联系人
	private String contactNumber;//联系电话
	private int reserveAmount ;//参观人数
	private String remark;//备注
	private String state;//0为待预约  1为已预约
	
	@ManyToOne(cascade=CascadeType.REFRESH,optional=false)
	@JoinColumn(name = "room_id")
	private ProvideRoom room;//关联商品
	
	@ManyToOne(cascade=CascadeType.REFRESH,optional=false)
	@JoinColumn(name = "user_id")
	private PersonalUser user;//关联用户
	

}
